﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Anythink.Mvc
{
    class NonAuthorizedUser : CurrentUser
    {
        public NonAuthorizedUser(string clientId)
        {
            _clientId = clientId;
        }

        string _clientId;

        public override long UserId
        {
            get { return 0; }
        }

        public override string ClientId
        {
            get { return _clientId; }
        }

        public override string DisplayName
        {
            get { return "匿名用户"; }
        }

        public override bool IsAdmin
        {
            get { return false; }
        }

        public override bool IsAuthorized
        {
            get { return false; }
        }
    }
}
